package com.service.impl;

import com.dao.NewsTypeDao;
import com.entity.Td_newstype;
import com.service.inte.NewsTypeServiceInte;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsTypeServiceImpl implements NewsTypeServiceInte{

    @Autowired
    private NewsTypeDao newsTypeDao;

    @Override
    public List<Td_newstype> getAllByFD_FatherLevelID(int fatherId) {
        return newsTypeDao.getAllByFD_FatherLevelID(fatherId);
    }
}
